home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / MasteringDetails / EOFExtensions.subproj / SelectionInsertionAssociation.h < prev    next >
Encoding:
Text File  |  1995-02-18  |  1.5 KB  |  30 lines

  1. /* SelectionInsertionAssociation.h created by cfeder on Tue 08-Nov-1994 */
  2. #import <eointerface/eointerface.h>
  3.  
  4. // The SelectionInsertionAssociation should really be named the
  5. // "Selection In One Controller Indicates Object Insertion in
  6. // Another,  De-selection Indicates Deletion"
  7. //
  8. // The destination of this association is a controller containing all
  9. // interesting object values that can be inserted in the associations
  10. // controller.  The selection in the destination controller describes
  11. // what subset of those objects should be inserted in the source controller.
  12. // For example, say I associate the employeeProjects controller to the allProjects
  13. // controller, where allProjects is the list of all projects anyone can work on,
  14. // and employeeProjects is the detail controller for an employee containing
  15. // the subset of those objects to which this employee is assigned.
  16. // If these user selects a new project in a tableview associated with the
  17. // allProjects controller, the SelectionInsertionAssociation will add that project
  18. // object to the employees detail controller.  Conversely, if the user selects a
  19. // different employee, and consequently the contents of the employeeProjects
  20. // detail controller changes, the SelectionInsertionAssociation updates makes
  21. // sure that the corresponding objects in the allProjects controller are selected.
  22. //
  23. @interface SelectionInsertionAssociation : EOAssociation
  24. {
  25.     BOOL ignoreNotifications;
  26. }
  27. - initWithController:(EOController *)aController
  28.         key: (NSString *)aKey destination: aDest;
  29. @end
  30.